package entity;

public class User {
	private Integer id = null;
	private Integer ywsId = null; // 在YWS的id
	private String ywsLoginName = null;
	private String ywsPassWord = null;
	private String ywsNickName = null;
	private String heart = null;
	private String facePath = null;
	private String joinTime = null;	//加入时间
	private boolean isDenied = false;	//是否禁止登录
	private boolean isOnline = false;


	/*
	 * private String passWord = null; private Character gender = 'N';
	 * //性别'M'-男, 'F'-女, 'N'-未知 private String birthday = ""; //生日 private
	 * String qq = ""; //QQ private String email = ""; //Email private String
	 * honor = ""; //头衔 private Integer experience = null; //经验 private Double
	 * money = null; //钱 private String homePage = ""; private String
	 * ywsRegisterTime = null; private Integer ywsLoginedCount = 0; private
	 * Integer ywsTopicCount = 0; //发贴数量 private Integer ywsReplyCount = 0;
	 * //回复数量 private Integer ywsGoodTopicCount = 0; //精华数量 private Integer
	 * maxPower = null; //最大体力 private Integer remnantPower = null; //剩余体力
	 * private String levelName = null; //等级 private String personShow = null;
	 * //个人签名
	 */



	public User() {
	}

	@Override
	public boolean equals(Object o) {
		if (o == null)
			return false;

		if (!(o instanceof User))
			return false;

		Integer i = ((User) o).getId();
		Integer yi = ((User) o).getYwsId();
		if (id == null || ywsId == null || i == null || yi == null)
			return false;

		return (id.equals(i) && ywsId.equals(yi));
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getYwsId() {
		return ywsId;
	}

	public void setYwsId(Integer ywsId) {
		this.ywsId = ywsId;
	}

	public String getYwsLoginName() {
		return ywsLoginName;
	}

	public void setYwsLoginName(String ywsLoginName) {
		this.ywsLoginName = ywsLoginName;
	}

	public String getYwsNickName() {
		return ywsNickName;
	}

	public void setYwsNickName(String ywsNickName) {
		this.ywsNickName = ywsNickName;
	}

	public String getHeart() {
		return heart;
	}

	public void setHeart(String heart) {
		this.heart = heart;
	}

	public String getYwsPassWord() {
		return ywsPassWord;
	}

	public void setYwsPassWord(String ywsPassWord) {
		this.ywsPassWord = ywsPassWord;
	}

	public String getJoinTime() {
		return joinTime;
	}

	public void setJoinTime(String joinTime) {
		this.joinTime = joinTime;
	}

	public String getFacePath() {
		return facePath;
	}

	public void setFacePath(String facePath) {
		this.facePath = facePath;
	}

	public boolean isOnline() {
		return isOnline;
	}

	public void setOnline(boolean isOnline) {
		this.isOnline = isOnline;
	}
	public boolean isDenied() {
		return isDenied;
	}

	public void setDenied(boolean isDenied) {
		this.isDenied = isDenied;
	}

}
